package org.emet.web;

import java.util.List;

import org.emet.jee.console.dao.sys.ArchDao;
import org.emet.jee.console.entity.sys.Archive;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class LoginController {

	@Autowired
	private ArchDao archDao;

	@RequestMapping("/login.do")
	public String login(Model model) {
		List<Archive> all = archDao.getAll("id", false);
		model.addAttribute("archList", all);
		return "login";
	}

}
